<template>
	<view class=".nav-container-custom">
		<uni-nav-bar :fixed="false" :title="title" color="#333333" background-color="#FFFFFF" leftIcon="arrow-left"
			@clickLeft="returnLeft()">
		</uni-nav-bar>
	</view>
</template>

<script>
	export default {
		props: {
			title: String,
			isback: Boolean
		},
		name: "TopNavCustom",
		data() {
			return {

			};
		},
		watch: {
			isback(newVal, oldVal) {
				// newVal是新值，oldVal是旧值
				if (newVal)
					this.returnLeft()
			}
		},
		methods: {
			returnLeft() {
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.nav-container-custom /deep/ .uni-nav-bar-text {
		font-size: 36rpx;
	}
</style>
